package org.dromara.system.domain.bo;

import org.dromara.system.domain.CmsSupplier;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 供应商管理业务对象 cms_supplier
 *
 * @author Lion Li
 * @date 2025-08-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CmsSupplier.class, reverseConvertGenerate = false)
public class CmsSupplierBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 供应商编码
     */
    @NotBlank(message = "供应商编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierCode;

    /**
     * 供应商名称
     */
    @NotBlank(message = "供应商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierName;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String linkMan;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String linkPhone;


}
